<?php
class Public_Applet_LinksSuccessView extends BlogPublicBaseView
{
    public function executeHtml(AgaviRequestDataHolder $rd)
    {
        $this->setupHtml($rd, 'slot');
        $links_defs = explode("\n", WereWordConfig::get('blog.applet.links.links_list'));
        $links = array();
        foreach ($links_defs as $link_def) {
            list($text, $url) = explode('|', $link_def);
            $links[] = array('text'=>$text, 'url'=>$url);
        } 
        $this->setAttribute('links', $links);
    }
}
?>